package com.redis.dynamicthreadpool.properties;

import jakarta.annotation.PostConstruct;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "thread.pool")
@Data
public class ThreadPoolProperties {
    private int corePoolSize;
    private int maximumPoolSize;
    private int workQueueSize;

//    @PostConstruct
//    public void init() {
//        System.out.println("Work Queue Size: " + workQueueSize); // 预期输出1024
//    }
}
